<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use frontend\assets\AppAsset;

/* @var $this yii\web\View */

$this->title = 'A-PMS项目管理系统';

AppAsset::addCss($this, '@web/css/index.css');

AppAsset::addScript($this, '@web/js/index.js');

?>

<div class="header">
    <div class="container">
        <div class="row">
            <div class="left col-xs col-sm-6  col-md-6 col-lg-6 ">
                <img class="img-responsive" alt="Responsive image" src="images/image/common/pm5log.png"/>
            </div>
            <div class="right col-xs col-sm-6  col-md-6 col-lg-6">
                <div class="row">
                    <div class="col-sm-9 col-md-9 col-lg-9">
                        <p class="pull-right"></p>
                    </div>
                    <div class="col-sm-3 col-md-3 col-lg-3">
                        <span class="user"></span>
                        <span class=" exit glyphicon y glyphicon-search  glyphicon-off" aria-hidden="true"> 退出</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--//导航区-->
<div class="myNav">
    <div class="container">
        <div class="row">

            <!-- tab标签 -->
            <ul id="myTab" class="nav nav-tabs">
                <li class=" myTabBootom  col-sm-2 col-md-2 text-center">
                    <a class="" href="#officHall" data-toggle="tab">办公大厅</a>
                </li>
                <li class="col-sm-2 col-md-2 text-center">
                    <a class="two" href="#presentation" data-toggle="tab">项目管理</a>
                </li>
                <li class="col-sm-2 col-md-2 text-center">
                    <a href="#examine" data-toggle="tab">审批管理</a>

                </li>
                <li class="col-sm-2 col-md-2 text-center">
                    <a href="#fileManagement" data-toggle="tab">档案管理</a>

                </li>
                <li class=" col-sm-2 col-md-2 text-center">
                    <a class="two" href="#backManagement" data-toggle="tab">后台管理</a>

                </li>
            </ul>
            <div id="myTabContent" class="tab-content">

                <div class="tab-pane fade nav nav-tabs" id="officHall">
                </div>
                <div class="presentation tab-pane fade nav nav-tabs" id="presentation">
                    <li role="presentation"><a href="#"> 资产包管理</a></li>
                    <li role="presentation"><a href="#">单项目管理</a></li>
                </div>
                <div class="tab-pane fade nav nav-tabs" id="examine">
                </div>
                <div class="tab-pane fade nav nav-tabs" id="fileManagement">
                </div>
                <div class="backManagement tab-pane fade nav nav-tabs" id="backManagement">
                    <li role="presentation"><a href="#">岗位管理</a></li>
                    <li role="presentation"><a href="#">用户管理</a></li>
                    <li role="presentation"><a href="#">角色管理</a></li>
                    <li role="presentation"><a href="#">菜单管理</a></li>
                    <li role="presentation"><a href="#">工作配置</a></li>
                </div>
            </div>
        </div>
    </div>
</div>
<!--中心内容区-->
<div class="container content">
    <div class="row">
        <div class="content-left pull-left">
            <div class="list-group">
                <a href="#" class="list-group-item active">
                    <img src="images/image/officeHall/uploadAssetPackage/upload.png"
                         class="pull-left"><span>上传基本信息</span>
                </a>
                <a href="#" class="list-group-item ">
                    <img src="images/image/officeHall/uploadAssetPackage/new.png" class="pull-left"><span>我的新建记录</span></a>
            </div>
        </div>
        <div class="content-right pull-right">
            <div class="upLoadInformation">
                <span></span>
                <p>上传基本信息</p>
            </div>
            <div class="loadState">
                <img src="images/image/officeHall/uploadAssetPackage/loadState.png" alt=""/>
            </div>


            <?php $form = ActiveForm::begin([
                'action' => ['package/step1'], //提交地址(*可省略*)
                'method' => 'post',    //提交方法(*可省略默认POST*)
                'id' => 'login-form', //设置ID属性
                'options' => [
                    'class' => 'myForm form-inline', //设置class属性
                    'enctype' => 'multipart/form-data' //文件上传时添加该编码
                ],
                /*'fieldConfig' => [
                    'template' => '<div class="form-group"><center><label class="col-md-2 control-label" for="type-name-field">{label}</label></center><div class="col-md-8 controls">{input}{error}</div></div>'
                ],  //设置模板的样式*/
            ]); ?>

            <? /*= $form->field($model, 'xlsFile')->fileInput() */ ?>


            <!--<form class="myForm form-inline" action="index.php?r=package/handle1" method="post">-->
            <!--<div class="form-group">
                <label for="assetPackageName">资产包名称</label>
                <input type="text" autofocus class="form-control" id="assetPackageName" name="title" value=""
                       placeholder="请输入资产包名称" list="assetPackageTitle">
            </div>-->

            <?= $form->field($model, 'title',
                [
                    'inputOptions' => ['placeholder' => '请输入资产包名称', 'class' => 'form-control', 'id'=>'assetPackageName'],
                    'template' => '<div class="form-group"><div class="col-md-8 controls">{label}{input}{error}</div></div>'
                ]
            )->textInput(['maxlength' => 255, /*"style" => "width:200px; height:30px;"*/]) ?>


            <br/>
            <div class="form-group">
                <label for="exampleInputEmail2">资产类型</label>
                <button type="button" name="type" value="0" class="btn btn-default">保证类</button>
                <button type="button" name="type" value="1" class="btn btn-default">抵押类</button>
                <button type="button" name="type" value="2" class="btn btn-default">保证类</button>
            </div>
            <br/>
            <div class="form-group jurisdiction">
                <span for="exampleInputEmail2">访问权限</span>
                <input type="radio" id="open" name="access" value="0"/>
                <label for="open">公开</label>
<!--                <input type="radio" id="private" name="access" value="1"/>-->
<!--                <label for="private">私密</label>-->
                <input type="radio" id="partialDisclosure" name="access" value="2" checked="checked"/>
                <label for="partialDisclosure" class="radioChecked">部分公开</label>
            </div>
            <br/>

            <div class="form-group PublicSector">
                <label>公开部门</label>
                <input type="checkbox" name="oneSector" class="sector" id="oneSector" value="1"/>
                <label for="oneSector">项目一部</label>
                <br/>
                <div class="listoneSector  sectorList">
                    <input type="checkbox" class="whole" name="oneWhole" id="oneWhole" value="0"/>
                    <label for="oneWhole">全选</label>
                    <br/>

                    <label for="1">
                        <input type="checkbox" name="oneWhole" id="1" value="0"/>
                        王小五
                    </label>
                    <label for="12">
                        <input type="checkbox" name="oneWhole" id="12" value="0"/>
                        王小五
                    </label>
                    <label for="13">
                        <input type="checkbox" name="oneWhole" id="13" value="0"/>
                        王小五
                    </label>
                    <label for="14">
                        <input type="checkbox" name="oneWhole" id="14" value="0"/>
                        王小五
                    </label>
                    <label for="15">
                        <input type="checkbox" name="oneWhole" id="15" value="0"/>
                        王小五
                    </label>
                    <label for="16">
                        <input type="checkbox" name="oneWhole" id="16" value="0"/>
                        王小五
                    </label>
                    <label for="17">
                        <input type="checkbox" name="oneWhole" id="17" value="0"/>
                        王小五
                    </label>
                    <label for="18">
                        <input type="checkbox" name="oneWhole" id="18" value="0"/>
                        王小五
                    </label>
                    <label for="19">
                        <input type="checkbox" name="oneWhole" id="19" value="0"/>
                        王小五
                    </label>
                    <label for="10">
                        <input type="checkbox" name="oneWhole" id="10" value="0"/>
                        王小五
                    </label>
                    <label for="11">
                        <input type="checkbox" name="oneWhole" id="11" value="0"/>
                        王小五
                    </label>
                </div>
                <input type="checkbox" name="oneProject" class="sector" id="twoSector" value="2"/>
                <label for="twoSector">项目二部</label>
                <br/>
                <div class="listtwoSector sectorList">
                    <input type="checkbox" class="whole" name="twoWhole" id="twoWhole" value="0"/>
                    <label for="twoWhole">全选</label>
                    <br/>

                    <label for="2">
                        <input type="checkbox" name="twoWhole" id="2" value="100"/>
                        王小五
                    </label>
                    <label for="21">
                        <input type="checkbox" name="twoWhole" id="21" value="0"/>
                        王小五
                    </label>
                </div>
                <input type="checkbox" name="oneProject" class="sector" id="threeSector" value="3"/>
                <label for="threeSector">项目三部</label>
                <br/>
                <div class="listthreeSector  sectorList">
                    <input type="checkbox" class="whole" name="threeWhole" id="threeWhole" value="0"/>
                    <label for="threeWhole">全选</label>
                    <br/>

                    <label for="3">
                        <input type="checkbox" name="threeWhole" id="3" value="0"/>
                        王小五
                    </label>
                    <label for="31">
                        <input type="checkbox" name="threeWhole" id="31" value="0"/>
                        王小五
                    </label>
                </div>
                <input type="checkbox" name="oneProject" class="sector" id="fourSector" value="4"/>
                <label for="fourSector">项目四部</label>
                <br/>
                <div class="listfourSector  sectorList">
                    <input type="checkbox" class="whole" name="fourWhole" id="fourWhole" value="0"/>
                    <label for="fourWhole">全选</label>
                    <br/>

                    <label for="4">
                        <input type="checkbox" name="fourWhole" id="4" value="0"/>
                        王小五
                    </label>
                    <label for="41">
                        <input type="checkbox" name="fourWhole" id="41" value="0"/>
                        王小五
                    </label>
                </div>
                <input type="checkbox" name="oneProject" class="sector" id="fivSector" value="5"/>
                <label for="fivSector">项目五部</label>
                <br/>
                <div class="listfivSector  sectorList">
                    <input type="checkbox" class="whole" name="fivWhole" id="fivWhole" value="0"/>
                    <label for="fivWhole">全选</label>
                    <br/>

                    <label for="5">
                        <input type="checkbox" name="fivWhole" id="5" value="0"/>
                        王小五
                    </label>
                    <label for="51">
                        <input type="checkbox" name="fivWhole" id="51" value="0"/>
                        王小五
                    </label>
                </div>
                <input type="checkbox" name="oneProject" class="sector" id="sixSector" value="6"/>
                <label for="sixSector">项目六部</label>
                <div class="listsixSector  sectorList">
                    <input type="checkbox" class="whole" name="sixWhole" id="sixWhole" value="0"/>
                    <label for="sixWhole">全选</label>
                    <br/>

                    <label for="6">
                        <input type="checkbox" name="sixWhole" id="6" value="0"/>
                        王小五
                    </label>
                    <label for="61">
                        <input type="checkbox" name="sixWhole" id="61" value="0"/>
                        王小五
                    </label>

                </div>
            </div>
            <br/>

            <br/>
            <div class="nextStep">
                <? echo Html::submitButton('下一步', ['class' => 'btn btn-primary pu', 'name' => 'submit-button']) ?>
            </div>

            <?php ActiveForm::end() ?>


        </div>
    </div>
</div>

